package com.ftg.product.exam.dto;

import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.ftg.product.exam.entity.BaseDaily;
import com.ftg.product.exam.entity.BaseClazz;
import com.ftg.product.exam.entity.BaseSubject;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 记录各班级的授课情况，完善班级以及学生和课程相应信息 DTO定义
* @author kangjx
* @version 1.0
* @date 2021-01-14
 * Copyright © ftg
*/
@Getter @Setter @Accessors(chain = true)
public class BaseDailyDTO extends BaseDaily  {
    private static final long serialVersionUID = -6202724675743417221L;

    /**
    * 关联字段 BaseClazz.clazzname
    */
    @BindQuery(comparison = Comparison.EQ, entity = BaseClazz.class, field = "clazzname", condition = "this.clazzcode=id")
    private String clazzcodeClazzname;
    /**
    * 关联字段 BaseSubject.subname
    */
    @BindQuery(comparison = Comparison.EQ, entity = BaseSubject.class, field = "subname", condition = "this.subcode=id")
    private String subcodeSubname;
}